package n.d.l.svn.mapper.log;

import java.util.List;

import n.d.l.svn.bean.PatchLog;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface PatchLogMapper {

	@Insert("insert into patch_log(version_start,version_end,create_time,log_path, project_id) values(#{versionStart},#{versionEnd},#{createTime},#{logPath},#{project.id})")
	int save(PatchLog log);

	List<PatchLog> findList(PatchLog log);
	
	PatchLog getLog(PatchLog log);
	
	PatchLog getTopLog(int projectId);
}
